export const navigationBarOptions = {
	statusbarColor: "transparent",
	navigationBarBackgroundColor: "white",
	navigationBarTitle: "助教",
	navigationBarTitleAlign: "center",
	navigationBarTextStyle: "black",
	backgroundColor: "#f5f5f5",
	borderBottomColor: "#00000009",
	float: false,
	shadow: false,
	leftButtons: [
		{
			lightIconName: "ic_menu_back_light",
			darkIconName: "ic_menu_back_dark",
			action: function() {
				let pages = getCurrentPages()
				if(pages && pages.length > 1) {
					uni.navigateBack({
						delta: 1
					});
				} else {
					getApp().globalData.isFromApp = false
					uni.reLaunch({
						url: "/pages/index/index"
					})
				}
			}
		},
		{
			lightIconName: "ic_menu_home_light",
			darkIconName: "ic_menu_home_dark",
			action: function() {
				uni.reLaunch({
					url: '/pages/index/index'
				});
			}
		}
	]
}

export const tabBar = {
	backgroundColor: "white",
	shadow: true,
	selectedColor: "#01CBFF",
	color: "#021624",
	height: 50,
	spacing: 3,
	fontSize: 10,
	iconHeight: 24,
	list: [
		{
			pagePath: "pages/index/index",
			iconPath: "/static/images/ic_index.png",
			selectedIconPath: "/static/images/ic_index_select.png",
			text: "首页",
			author: false
		},
		{
			pagePath: "pages/tab-square/tab-square",
			iconPath: "/static/images/ic_square.png",
			selectedIconPath: "/static/images/ic_square_select.png",
			text: "娱乐",
			author: false
		},
		// {
		// 	pagePath: "pages/player-order-list/player-order-list",
		// 	iconPath: "/static/images/ic_order.png",
		// 	selectedIconPath: "/static/images/ic_order_select.png",
		// 	text: "订单",
		// 	author: false
		// },
		{
			pagePath: "pages/tab-mine/tab-mine",
			iconPath: "/static/images/ic_mine.png",
			selectedIconPath: "/static/images/ic_mine_select.png",
			text: "我的",
			author: false
		}
	]
}